import Axios from '../libs/axios'

/**
 * getPublicKey 获取页面密钥
 * @param {*} param
 */
export const getPublicKey = () => {
  return new Promise((resolve, reject) => Axios.tasilyAjax({version: 0}, 'user/getPublicKey.form', resolve, reject))
}
/**
 * login 用户登陆接口
 * @param {} param
 */
export const login = ({client, data}) => {
  return new Promise((resolve, reject) => Axios.tasilyAjax({client, data}, '/user/login.form', resolve, reject))
}
